import "./wdyr"; // <--- 调试工具，放在第一行 引入

import React from "react";
import ReactDOM from "react-dom";
import { HashRouter as Router, Routes, Route } from "react-router-dom";
import "./index.css";
import "./all.css";

import Welcome from "./views/welcome";
import Components from "./views/components";
import NotFound from "./views/404";

ReactDOM.render(
  <React.StrictMode>
    <Router>
      <Routes>
        <Route path="/" element={<Welcome />} />
        <Route path="/components" element={<Components />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </Router>
  </React.StrictMode>,
  document.getElementById("root")
);
